package com.lc.entity;

import java.util.List;

/**
 * Created by 下雨不带伞 on 2019/7/18.
 */
public class TXDistanceResult {

    private Loc location;
    private List<ElementsBean> elements;
    private String address;
    private TXAddressComponent address_component;


    public List<ElementsBean> getElements() {
        return elements;
    }

    public void setElements(List<ElementsBean> elements) {
        this.elements = elements;
    }

    public Loc getLocation() {
        return location;
    }

    public void setLocation(Loc location) {
        this.location = location;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public TXAddressComponent getAddress_component() {
        return address_component;
    }

    public void setAddress_component(TXAddressComponent address_component) {
        this.address_component = address_component;
    }

    public static class ElementsBean {
        /**
         * from : {"lat":39.983171,"lng":116.308479}
         * to : {"lat":39.996059,"lng":116.353454}
         * distance : 5354.7
         * duration : 1678
         */

        private Loc from;
        private Loc to;
        private double distance;
        private int duration;

        public Loc getFrom() {
            return from;
        }

        public void setFrom(Loc from) {
            this.from = from;
        }

        public Loc getTo() {
            return to;
        }

        public void setTo(Loc to) {
            this.to = to;
        }

        public double getDistance() {
            return distance;
        }

        public void setDistance(double distance) {
            this.distance = distance;
        }

        public int getDuration() {
            return duration;
        }

        public void setDuration(int duration) {
            this.duration = duration;
        }


        @Override
        public String toString() {
            return "ElementsBean{" +
                    "from=" + from +
                    ", to=" + to +
                    ", distance=" + distance +
                    ", duration=" + duration +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "TXDistanceResult{" +
                "elements=" + elements +
                '}';
    }
}
